<table id="data-load" class="yx-course-info" style="margin-bottom: 20px">
    <tbody>
    <?php if(!empty($attr['teacher_form'])){?>
        <tr>
            <td>教学形式</td>
            <td><?php
                if(isset($attr['teacher_form'])) {
                    switch ($attr['teacher_form']) {
                        case 0:
                            echo '一对一';
                            break;
                        case 1:
                            echo '小班制';
                            break;
                        case 2:
                            echo '普通班';
                    }
                }
                ?></td>
        </tr>
    <?php }?>
    <?php if(!empty($attr['class_count'])){?>
        <tr>
            <td>课次</td>
            <td ><?=isset($attr['class_count'])?$attr['class_count']:'';?>节课</td>
        </tr>
    <?php }?>

    </tbody></table>
<?=$form?>
<?php
//$url = \common\components\helpers\Fun::url($this->context->route);
//$js = <<<JS
//$(document).ready(function(){
//    var way =$("#goods-distribution_way").val();
//    if(way==2){
//      $('#goods-distribution_way').attr('disabled','true')
//    }
//});
//JS;
//$this->registerJs($js);
//?>
